﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" ValidateRequest="false" CodeBehind="PurchaseTickets.aspx.cs" Inherits="CreateReservations.PurchaseTickets" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<div class="bigDiv">
    <div class="catTemp">
        <div class="lblTemp"><asp:Label ID="nameLbl" runat="server" Text="Your Name: "></asp:Label></div>
        <div class="lblTemp"><asp:Label ID="numLbl" runat="server" Text="Number of tickets: "></asp:Label></div>
        <div class="lblTemp"><asp:Label ID="addLbl" runat="server" Text="Delivery Address: "></asp:Label></div>
    </div>
      <div class="textBlockTemp">
        <div class="txtTemp"><asp:TextBox ID="nameTxt" runat="server"></asp:TextBox>
        <asp:RequiredFieldValidator ID="RequiredFieldValidatorFirstName" runat="server"
                    ControlToValidate="nameTxt"
                    Display="Dynamic"
                    ValidationGroup = "myGroup"
                    ErrorMessage="User name is required"
                    ForeColor="Red">
        </asp:RequiredFieldValidator></div>
        <div class="txtTemp"><asp:TextBox ID="numTxt" runat="server"></asp:TextBox>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server"
                    ControlToValidate="numTxt"
                    Display="Dynamic"
                    ValidationGroup = "myGroup"
                    ErrorMessage="Number of tickets is required"
                    ForeColor="Red">
        </asp:RequiredFieldValidator>
        <asp:RangeValidator ID="RangeValidatorMinPrice" runat="server"
                    ErrorMessage="Invalid number of tickets" 
                    ControlToValidate="numTxt"
                    Display="Dynamic"
                    ValidationGroup = "myGroup"
                    ForeColor="Red"
                    Type="Integer"
                    MinimumValue="1"
                    MaximumValue="999">
                 </asp:RangeValidator></div>
        <div class="txtTemp"><asp:TextBox ID="addTxt" runat="server"></asp:TextBox>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server"
                    ControlToValidate="addTxt"
                    Display="Dynamic"
                    ValidationGroup = "myGroup"
                    ErrorMessage="Address is required"
                    ForeColor="Red">
        </asp:RequiredFieldValidator></div>
    </div>
    <br />
    <div class="buttons">
        <div class="button"><asp:LinkButton ID="createLB" runat="server"
                onclick="createLB_Click">Create Purchase</asp:LinkButton></div>
    </div>   
   <div class="buttons">
        <div class="button"><a href="Default.aspx">Cancel</a></div>
   </div> 
   <br />
</div>
   <div class="lblTemp"><asp:Label ID="errLbl" runat="server" Text=""></asp:Label></div>
</asp:Content>

